import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export const baseRouter = [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/components/login')
  },
  {
    path: '/',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/components/menuList')
  },
  {
    path: '*',
    name: '404',
    component: () => import('@/components/404')
  },
  {
    path: '/alias',
    name: 'alias',
    component: () => import('@/components/alias')
  }
]

export default new Router({
  routes: baseRouter
})
